/*  1:   */ package tt.dz.web.controller.financial;
/*  2:   */ 
/*  3:   */ import com.alibaba.fastjson.JSON;
/*  4:   */ import java.util.ArrayList;
/*  5:   */ import java.util.List;
/*  6:   */ import javax.annotation.Resource;
/*  7:   */ import javax.servlet.http.HttpServletRequest;
/*  8:   */ import org.springframework.stereotype.Controller;
/*  9:   */ import org.springframework.web.bind.annotation.RequestMapping;
/* 10:   */ import org.springframework.web.bind.annotation.ResponseBody;
/* 11:   */ import tt.dz.biz.service.financial.TradeService;
/* 12:   */ import tt.dz.common.JSONUtil;
/* 13:   */ import tt.dz.common.LogUtil;
/* 14:   */ import tt.dz.vo.ResponseModle;
/* 15:   */ import tt.dz.vo.TranInfoVO;
/* 16:   */ import tt.dz.web.controller.BaseController;
/* 17:   */ 
/* 18:   */ @Controller
/* 19:   */ public class TradeController
/* 20:   */   extends BaseController
/* 21:   */ {
/* 22:   */   @Resource(name="tradeService")
/* 23:   */   private TradeService tradeService;
/* 24:   */   
/* 25:   */   @RequestMapping(value={"/listTranInfo"}, produces={"application/json;charset=UTF-8"})
/* 26:   */   @ResponseBody
/* 27:   */   public String listTranInfo(HttpServletRequest request)
/* 28:   */   {
/* 29:35 */     ResponseModle responseModle = null;
/* 30:   */     try
/* 31:   */     {
/* 32:37 */       String tranInfoVOJSON = request.getParameter("tranInfoVO");
/* 33:38 */       TranInfoVO tranInfoVO = (TranInfoVO)JSONUtil.parseObjectAsDateFormat(tranInfoVOJSON, TranInfoVO.class);
/* 34:39 */       List<TranInfoVO> tranInfoVOs = this.tradeService.queryTranInfoVOs(tranInfoVO);
/* 35:40 */       responseModle = new ResponseModle("success", tranInfoVOs);
/* 36:   */     }
/* 37:   */     catch (Exception e)
/* 38:   */     {
/* 39:42 */       LogUtil.error("交易流水异常", e);
/* 40:43 */       responseModle = new ResponseModle("error", new ArrayList());
/* 41:   */     }
/* 42:45 */     return JSON.toJSONString(responseModle);
/* 43:   */   }
/* 44:   */ }


/* Location:           F:\work\pengyu\mainServer\WEB-INF\classes\
 * Qualified Name:     tt.dz.web.controller.financial.TradeController
 * JD-Core Version:    0.7.0.1
 */